package com.leqicheng.tenon.login;

import java.util.HashMap;
import java.util.Map;

import org.apache.cordova.CordovaPlugin;

import android.app.Activity;
import android.content.Context;

import com.leqicheng.tenon.model.EntryInfoModel;
import com.leqicheng.tenon.util.HttpRequest;
import com.leqicheng.tenon.util.RequestTypeEnum;

public class GameInfoHttpRequest extends HttpRequest {

    private final Context mContext;


    public GameInfoHttpRequest(Context context, Activity activity) {
        super(context, activity);
        this.mContext = context;
    }

    public String postRequest(EntryInfoModel model) {
        Map<String, String> Data = new HashMap<String, String>();
        RequestTypeEnum requestType = RequestTypeEnum.GET_GAME_URL;
        Data.put("game_key", model.getGameId());
        Data.put("channel_key", model.getChannelId());
        String requestUriType = "get-game-info";
        this.AsyncHttpClientPostOnBack(requestType, Data, requestUriType);
        return requestUriType;
    }
}
